package com.bawei.system.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Map;

/**
 * @Author：韩丹阳
 * @Package：com.bawei.system.domain
 * @Project：mall_cloud
 * @name：IndexCreateRequest
 * @Date：2024/6/20 下午 03:05
 */
@Data
@ApiModel("索引信息")
public class IndexCreateRequest {
    @ApiModelProperty(value = "索引名称",required = true)
    @NotBlank(message = "索引名称不能为空")
    private String indexName;

    @ApiModelProperty(value = "索引映射",required = false)
    private Map mappings;

    @ApiModelProperty(value = "索引设置",required = false)
    private Map settings;

}
